﻿using System;
//
namespace PerceptiveMCAPI.Types
{
   public class campaignStatsResults
   {
      public int syntax_errors { get; set; }
      public int hard_bounces { get; set; }
      public int soft_bounces { get; set; }
      public int unsubscribes { get; set; }
      public int abuse_reports { get; set; }
      public int forwards { get; set; }
      public int forwards_opens { get; set; }
      public int opens { get; set; }
      public DateTime last_open { get; set; }
      public int unique_opens { get; set; }
      public int clicks { get; set; }
      public int unique_clicks { get; set; }
      public DateTime last_click { get; set; }
      public int users_who_clicked { get; set; }
      public int emails_sent { get; set; }

      public campaignStatsResults()
      {
         last_open = DateTime.MinValue;
         last_click = DateTime.MinValue;
      }

      public override string ToString()
      {
         return string.Format( "emails_sent: {0}, unique_opens: {1}, unique_clicks: {2}, unsubscribes: {3}, abuse_reports: {4}, hard_bounces {5}, soft_bounces {6}",
            emails_sent, unique_opens, unique_clicks, unsubscribes, abuse_reports, hard_bounces, soft_bounces );
      }
   }
}
